
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>生态组件 · React 基础学习资料</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="小翼">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../chapter02/00.html" />
    
    
    <link rel="prev" href="04.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    React 手稿
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="00.html">
            
                <a href="00.html">
            
                    
                    基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="01.html">
            
                <a href="01.html">
            
                    
                    初识React
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="02.html">
            
                <a href="02.html">
            
                    
                    React 特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="03.html">
            
                <a href="03.html">
            
                    
                    React Initial Project
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="04.html">
            
                <a href="04.html">
            
                    
                    Component和Dom
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.5" data-path="05.html">
            
                <a href="05.html">
            
                    
                    生态组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../chapter02/00.html">
            
                <a href="../chapter02/00.html">
            
                    
                    组件生命周期
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../chapter02/01.html">
            
                <a href="../chapter02/01.html">
            
                    
                    装载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../chapter02/02.html">
            
                <a href="../chapter02/02.html">
            
                    
                    更新
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../chapter02/03.html">
            
                <a href="../chapter02/03.html">
            
                    
                    卸载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../chapter02/04.html">
            
                <a href="../chapter02/04.html">
            
                    
                    异常处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../chapter02/05.html">
            
                <a href="../chapter02/05.html">
            
                    
                    React.Component
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../chapter03/00.html">
            
                <a href="../chapter03/00.html">
            
                    
                    state
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../chapter03/01.html">
            
                <a href="../chapter03/01.html">
            
                    
                    Component state
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../chapter03/02.html">
            
                <a href="../chapter03/02.html">
            
                    
                    React-Redux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../chapter03/03.html">
            
                <a href="../chapter03/03.html">
            
                    
                    React-Router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../chapter03/04.html">
            
                <a href="../chapter03/04.html">
            
                    
                    redux-saga
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../chapter04/00.html">
            
                <a href="../chapter04/00.html">
            
                    
                    组件其他方法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../chapter04/01.html">
            
                <a href="../chapter04/01.html">
            
                    
                    其他API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../chapter04/02.html">
            
                <a href="../chapter04/02.html">
            
                    
                    类属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../chapter04/03.html">
            
                <a href="../chapter04/03.html">
            
                    
                    实例属性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../chapter05/00.html">
            
                <a href="../chapter05/00.html">
            
                    
                    React 高级用法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../chapter05/01.html">
            
                <a href="../chapter05/01.html">
            
                    
                    keys
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../chapter05/02.html">
            
                <a href="../chapter05/02.html">
            
                    
                    事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../chapter05/03.html">
            
                <a href="../chapter05/03.html">
            
                    
                    Refs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../chapter05/04.html">
            
                <a href="../chapter05/04.html">
            
                    
                    Fragment
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../chapter05/05.html">
            
                <a href="../chapter05/05.html">
            
                    
                    Context
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../chapter05/06.html">
            
                <a href="../chapter05/06.html">
            
                    
                    高阶组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../chapter05/07.html">
            
                <a href="../chapter05/07.html">
            
                    
                    类型查检
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../chapter05/08.html">
            
                <a href="../chapter05/08.html">
            
                    
                    代码分隔
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../chapter06/00.html">
            
                <a href="../chapter06/00.html">
            
                    
                    React 实例
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../chapter06/01.html">
            
                <a href="../chapter06/01.html">
            
                    
                    List
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../chapter06/02.html">
            
                <a href="../chapter06/02.html">
            
                    
                    Form
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../chapter06/03.html">
            
                <a href="../chapter06/03.html">
            
                    
                    Form高级
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../chapter06/04.html">
            
                <a href="../chapter06/04.html">
            
                    
                    Tooltip
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../chapter07/00.html">
            
                <a href="../chapter07/00.html">
            
                    
                    React项目打包部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../chapter07/01.html">
            
                <a href="../chapter07/01.html">
            
                    
                    与服务端交互
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../chapter07/02.html">
            
                <a href="../chapter07/02.html">
            
                    
                    打包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../chapter07/03.html">
            
                <a href="../chapter07/03.html">
            
                    
                    部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../chapter08/00.html">
            
                <a href="../chapter08/00.html">
            
                    
                    浅谈ES
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../chapter08/01.html">
            
                <a href="../chapter08/01.html">
            
                    
                    ES6 (ES2015)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../chapter08/02.html">
            
                <a href="../chapter08/02.html">
            
                    
                    ES7 (ES2016)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../chapter08/03.html">
            
                <a href="../chapter08/03.html">
            
                    
                    ES8 (ES2017)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../chapter08/04.html">
            
                <a href="../chapter08/04.html">
            
                    
                    ES9 (ES2018)
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../chapter09/00.html">
            
                <a href="../chapter09/00.html">
            
                    
                    React Hooks
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../chapter09/01.html">
            
                <a href="../chapter09/01.html">
            
                    
                    State Hooks useState
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../chapter09/02.html">
            
                <a href="../chapter09/02.html">
            
                    
                    State Hooks useReducer
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >生态组件</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x751F;&#x6001;&#x7EC4;&#x4EF6;">&#x751F;&#x6001;&#x7EC4;&#x4EF6;</h1>
<h3 id="state&#x7BA1;&#x7406;">state&#x7BA1;&#x7406;</h3>
<ul>
<li><p>react-redux</p>
<ul>
<li><p>react-thunk</p>
</li>
<li><p>react-saga</p>
</li>
</ul>
</li>
<li><p>mobx</p>
</li>
</ul>
<h3 id="&#x793E;&#x533A;&#x7CBE;&#x9009;&#x7EC4;&#x4EF6;">&#x793E;&#x533A;&#x7CBE;&#x9009;&#x7EC4;&#x4EF6;</h3>
<table>
<thead>
<tr>
<th>&#x7C7B;&#x578B;</th>
<th>&#x63A8;&#x8350;&#x7EC4;&#x4EF6;</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x8DEF;&#x7531;</td>
<td><a href="https://github.com/ReactTraining/react-router" target="_blank">react-router</a></td>
</tr>
<tr>
<td>&#x5E03;&#x5C40;</td>
<td><a href="https://github.com/whoisandy/react-blocks" target="_blank">react-blocks</a> / <a href="https://github.com/roylee0704/react-flexbox-grid" target="_blank">react-flexbox-grid</a></td>
</tr>
<tr>
<td>&#x62D6;&#x62FD;</td>
<td><a href="https://github.com/gaearon/react-dnd" target="_blank">react-dnd</a> / <a href="https://github.com/mzabriskie/react-draggable" target="_blank">react-draggable</a></td>
</tr>
<tr>
<td>&#x4EE3;&#x7801;&#x7F16;&#x8F91;&#x5668;</td>
<td><a href="https://github.com/scniro/react-codemirror2" target="_blank">react-codemirror2</a></td>
</tr>
<tr>
<td>&#x5BCC;&#x6587;&#x672C;&#x7F16;&#x8F91;&#x5668;</td>
<td><a href="https://github.com/zenoamaro/react-quill" target="_blank">react-quill</a> / <a href="https://github.com/jpuri/react-draft-wysiwyg" target="_blank">react-draft-wysiwyg</a> / <a href="https://github.com/leejaen/react-lz-editor" target="_blank">react-lz-editor&#xFF08;Ant Design &#x98CE;&#x683C;&#xFF09;</a> / <a href="https://github.com/margox/braft-editor" target="_blank">braft-editor</a></td>
</tr>
<tr>
<td>&#x62FE;&#x8272;&#x5668;</td>
<td><a href="https://github.com/react-component/color-picker" target="_blank">rc-color-picker</a> / <a href="http://casesandberg.github.io/react-color/" target="_blank">react-color</a></td>
</tr>
<tr>
<td>&#x54CD;&#x5E94;&#x5F0F;</td>
<td><a href="https://github.com/contra/react-responsive" target="_blank">react-responsive</a> / <a href="https://github.com/ReactTraining/react-media" target="_blank">react-media</a></td>
</tr>
<tr>
<td>&#x590D;&#x5236;&#x5230;&#x526A;&#x8D34;&#x677F;</td>
<td><a href="https://github.com/nkbt/react-copy-to-clipboard" target="_blank">react-copy-to-clipboard</a></td>
</tr>
<tr>
<td>&#x9875;&#x9762; meta &#x5C5E;&#x6027;</td>
<td><a href="https://github.com/nfl/react-helmet" target="_blank">react-helmet</a> / <a href="https://github.com/gaearon/react-document-title" target="_blank">react-document-title</a></td>
</tr>
<tr>
<td>&#x56FE;&#x6807;</td>
<td><a href="https://github.com/andreypopp/react-fa" target="_blank">react-fa</a> / <a href="https://github.com/gorangajic/react-icons" target="_blank">react-icons</a></td>
</tr>
<tr>
<td>&#x4E8C;&#x7EF4;&#x7801;</td>
<td><a href="https://github.com/zpao/qrcode.react" target="_blank">qrcode.react</a></td>
</tr>
<tr>
<td>&#x53EF;&#x89C6;&#x5316;&#x56FE;&#x8868;</td>
<td><a href="https://github.com/alibaba/BizCharts" target="_blank">BizCharts</a> / <a href="https://github.com/recharts/recharts/" target="_blank">recharts</a> / <a href="https://github.com/FormidableLabs/victory" target="_blank">victory</a></td>
</tr>
<tr>
<td>&#x9876;&#x90E8;&#x8FDB;&#x5EA6;&#x6761;</td>
<td><a href="https://github.com/rstacruz/nprogress" target="_blank">nprogress</a></td>
</tr>
<tr>
<td>&#x5E94;&#x7528;&#x56FD;&#x9645;&#x5316;</td>
<td><a href="https://github.com/yahoo/react-intl" target="_blank">react-intl</a></td>
</tr>
<tr>
<td>&#x4EE3;&#x7801;&#x9AD8;&#x4EAE;</td>
<td><a href="https://github.com/conorhastings/react-syntax-highlighter" target="_blank">react-syntax-highlighter</a></td>
</tr>
<tr>
<td>Markdown &#x6E32;&#x67D3;</td>
<td><a href="http://rexxars.github.io/react-markdown/" target="_blank">react-markdown</a></td>
</tr>
<tr>
<td>&#x65E0;&#x9650;&#x6EDA;&#x52A8;</td>
<td><a href="https://github.com/bvaughn/react-virtualized" target="_blank">react-virtualized</a></td>
</tr>
<tr>
<td>&#x5730;&#x56FE;</td>
<td><a href="https://github.com/tomchentw/react-google-maps" target="_blank">react-google-maps</a> / <a href="https://github.com/istarkov/google-map-react" target="_blank">google-map-react</a> / <a href="https://github.com/ElemeFE/react-amap" target="_blank">react-amap &#x9AD8;&#x5FB7;</a></td>
</tr>
<tr>
<td>&#x53F3;&#x952E;&#x83DC;&#x5355;</td>
<td><a href="https://github.com/vkbansal/react-contextmenu/" target="_blank">react-contextmenu</a> / <a href="https://github.com/fkhadra/react-contexify" target="_blank">react-contexify</a></td>
</tr>
<tr>
<td>Emoji</td>
<td><a href="https://github.com/missive/emoji-mart" target="_blank">emoji-mart</a></td>
</tr>
</tbody>
</table>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="04.html" class="navigation navigation-prev " aria-label="Previous page: Component和Dom">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../chapter02/00.html" class="navigation navigation-next " aria-label="Next page: 组件生命周期">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"生态组件","level":"1.2.5","depth":2,"next":{"title":"组件生命周期","level":"1.3","depth":1,"path":"chapter02/00.md","ref":"./chapter02/00.md","articles":[{"title":"装载","level":"1.3.1","depth":2,"path":"chapter02/01.md","ref":"./chapter02/01.md","articles":[]},{"title":"更新","level":"1.3.2","depth":2,"path":"chapter02/02.md","ref":"./chapter02/02.md","articles":[]},{"title":"卸载","level":"1.3.3","depth":2,"path":"chapter02/03.md","ref":"./chapter02/03.md","articles":[]},{"title":"异常处理","level":"1.3.4","depth":2,"path":"chapter02/04.md","ref":"./chapter02/04.md","articles":[]},{"title":"React.Component","level":"1.3.5","depth":2,"path":"chapter02/05.md","ref":"./chapter02/05.md","articles":[]}]},"previous":{"title":"Component和Dom","level":"1.2.4","depth":2,"path":"chapter01/04.md","ref":"./chapter01/04.md","articles":[]},"dir":"ltr"},"config":{"plugins":[],"root":"./books","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"小翼","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"React 基础学习资料","language":"zh-hans","links":{"gitbook":false,"sharing":{"google":true,"facebook":true,"twitter":true}},"gitbook":"*"},"file":{"path":"chapter01/05.md","mtime":"2020-03-07T07:33:43.848Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-09T08:08:41.080Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

